package com.coscoshipping.rams.demo.controller;

import com.coscoshipping.rams.demo.service.IZjbossCheckService;
import com.coscoshipping.rams.utils.base.Result;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhaoyin.yang
 * @since 2025-01-14
 */
@Slf4j
@Tag(name = "检查表")
@Validated
@RestController
@RequestMapping("/zjbossCheck")
public class ZjbossCheckController {


    @Autowired
    private IZjbossCheckService checkService;

    @ApiOperationSupport(order = 1)
    @Operation(summary = "团队消费")
    @PostMapping("/groupConsumer")
    public Result groupConsumer(){
        checkService.groupConsumer();
        return Result.success();
    }
}
